home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3190 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: feed.umontreal.ca!spi43!not-for-mail
  2. From: menars@JSP.UMontreal.CA (MENARD Steve)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ and lex?
  5. Date: 22 Jan 1996 19:30:44 GMT
  6. Organization: Universite de Montreal
  7. Distribution: world
  8. Message-ID: <4e0ol4$qu0@epervier.CC.UMontreal.CA>
  9. References: <4dugkp$fl8@apakabar.cc.columbia.edu>
  10. NNTP-Posting-Host: spi43.jsp.umontreal.ca
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Paul E Gunnells (peg14@aloha.cc.columbia.edu) wrote:
  14. : Hello everyone:
  15. : Has anyone ever tried using lex along with iostream.h to handle input?
  16. : Or better yet, is there some equivalent to lex that works well with
  17. : C++?
  18. : Of course, one solution is to have an extern C function yylex() that
  19. : just returns tokens that your C++ program deals with, but a better
  20. : solution (at least a cleaner solution) would be a version of lex that
  21. : allows you to directly incorporate C++ code (streams, constructors)
  22. : into the lex source.
  23. : Is there such a beast?
  24. : Paul Gunnells
  25.    Better yet, is there a YACC that can generate C++ code? I know of one, 
  26. but it is a commercial version.
  27.  
  28.  
  29. -- 
  30. ----------------------------------------------------------------------------
  31. --- |\_/|              Still The One and Only Wolfbane!                  ---
  32. --- |o o| " Hey! Why ya lookin' at me so weird? Ain't ya 'ver seen a     ---
  33. ---  \ /    decker witha horn ?" --- Scy, Troll decker with a CC         ---
  34. ---   0    Steve Menard                      menars@Jsp.UMontreal.Ca     ---
  35. ----------------------------------------------------------------------------
  36.